/**
 * 
 */
package bpel.types;

/**
 * @author Maurice & Topia
 *
 */
public class BPELPart {
	private String name;
	private String element;
	
	public BPELPart(String name, String element) {
		super();
		this.name = name;
		this.element = element;
	}

	public String getName() {
		return name;
	}

	public String getElement() {
		
		if(element.contains(":")){
			return element.substring(element.indexOf(':') + 1);
		}
		else{
			return element;
		}
	}
	
	@Override
	public String toString() {
		return name + " " + element;
	}
}
